package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Orders;
import com.itheima.dto.OrdersDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface OrderService extends IService<Orders> {
    @Transactional
    void submit(Orders orders);

    Page<Orders> findPage(Integer page, Integer pageSize,String number, String beginTime, String endTime);

    Page<OrdersDto> findUserPage(Integer page, Integer pageSize);
}
